package com.yoga.entity;

import java.io.Serializable;

/**
 * yoga_venue
 * @author 
 */
public class YogaVenue implements Serializable {
    private Integer vid;

    private String vname;

    private String address;

    private String context;

    private String tel;

    private Integer vPositive;

    private Integer vmsum;

    private Integer uid;

    private static final long serialVersionUID = 1L;

    public Integer getVid() {
        return vid;
    }

    public void setVid(Integer vid) {
        this.vid = vid;
    }

    public String getVname() {
        return vname;
    }

    public void setVname(String vname) {
        this.vname = vname;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Integer getvPositive() {
        return vPositive;
    }

    public void setvPositive(Integer vPositive) {
        this.vPositive = vPositive;
    }

    public Integer getVmsum() {
        return vmsum;
    }

    public void setVmsum(Integer vmsum) {
        this.vmsum = vmsum;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        YogaVenue other = (YogaVenue) that;
        return (this.getVid() == null ? other.getVid() == null : this.getVid().equals(other.getVid()))
            && (this.getVname() == null ? other.getVname() == null : this.getVname().equals(other.getVname()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getContext() == null ? other.getContext() == null : this.getContext().equals(other.getContext()))
            && (this.getTel() == null ? other.getTel() == null : this.getTel().equals(other.getTel()))
            && (this.getvPositive() == null ? other.getvPositive() == null : this.getvPositive().equals(other.getvPositive()))
            && (this.getVmsum() == null ? other.getVmsum() == null : this.getVmsum().equals(other.getVmsum()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getVid() == null) ? 0 : getVid().hashCode());
        result = prime * result + ((getVname() == null) ? 0 : getVname().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getContext() == null) ? 0 : getContext().hashCode());
        result = prime * result + ((getTel() == null) ? 0 : getTel().hashCode());
        result = prime * result + ((getvPositive() == null) ? 0 : getvPositive().hashCode());
        result = prime * result + ((getVmsum() == null) ? 0 : getVmsum().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", vid=").append(vid);
        sb.append(", vname=").append(vname);
        sb.append(", address=").append(address);
        sb.append(", context=").append(context);
        sb.append(", tel=").append(tel);
        sb.append(", vPositive=").append(vPositive);
        sb.append(", vmsum=").append(vmsum);
        sb.append(", uid=").append(uid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}